package com.aidong.liveVideo.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.aidong.util.ReadPropertiesUtil;


public class TrnLiveVideoList {
	
	private int type;
	protected Integer liveId;

	protected String liveAuthor;
	
	protected String liveName;
	
	protected String liveContent;
	
	protected String livePath;
	
	protected String liveBeginTime;
	
	protected String liveEndTime;
	
	protected String liveCover;
	
	protected int  isLiveShow;
	
	protected String videoPath;
	
	protected int  personCou;
	
	private int commentsCou;
	private int praiseCou;
	private int phase;
	
	public int getCommentsCou() {
		return commentsCou;
	}
	public void setCommentsCou(int commentsCou) {
		this.commentsCou = commentsCou;
	}
	public int getPraiseCou() {
		return praiseCou;
	}
	public void setPraiseCou(int praiseCou) {
		this.praiseCou = praiseCou;
	}

	public Integer getLiveId() {
		return liveId;
	}

	public void setLiveId(Integer liveId) {
		this.liveId = liveId;
	}

	public String getLiveAuthor() {
		return liveAuthor;
	}

	public void setLiveAuthor(String liveAuthor) {
		this.liveAuthor = liveAuthor;
	}

	public String getLiveName() {
		return liveName;
	}

	public void setLiveName(String liveName) {
		this.liveName = liveName;
	}

	public String getLiveContent() {
		return liveContent;
	}

	public void setLiveContent(String liveContent) {
		this.liveContent = liveContent;
	}

	public String getLivePath() {
		return livePath;
	}

	public void setLivePath(String livePath) {
		this.livePath = livePath;
	}

	public String getLiveCover() {
		if(type==0)
			return ReadPropertiesUtil.getLiveVideoCover(liveCover);
		else
			return liveCover;
	}

	public void setLiveCover(String liveCover) {
		this.liveCover = liveCover;
	}

	public int getPersonCou() {
		return personCou;
	}

	public void setPersonCou(int personCou) {
		this.personCou = personCou;
	}

	public String getLiveBeginTime() {
		return liveBeginTime;
	}

	public void setLiveBeginTime(String liveBeginTime) {
		this.liveBeginTime = liveBeginTime;
	}

	public String getLiveEndTime() {
		return liveEndTime;
	}

	public void setLiveEndTime(String liveEndTime) {
		this.liveEndTime = liveEndTime;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getIsLiveShow() {
		return isLiveShow;
	}
	public void setIsLiveShow(int isLiveShow) {
		this.isLiveShow = isLiveShow;
	}
	public String getVideoPath() {
		return videoPath;
	}
	public void setVideoPath(String videoPath) {
		this.videoPath = videoPath;
	}
	public int getPhase() {
		return phase;
	}
	public void setPhase(int phase) {
		this.phase = phase;
	}
	
}
